import { MessageContent, MessageEmbedConstructor } from 'discordoo'
import { Command } from '../interfaces/command.interface'
import { CommandContext } from '../interfaces/command-context.interface'

export class PingCommand implements Command {
  public readonly name = 'ping'

  async handle(ctx: CommandContext): Promise<MessageContent> {
    return new MessageEmbedConstructor({
      color: 'OLD_BLURPLE',
      description: `:ping_pong: Pong! ${ctx.client.gateway.ping}ms`,
    })
  }
}